package com.eedi.framework.logger.framework.logger;

import com.eedi.framework.logger.convert.SysOperateLogConvert;
import com.eedi.framework.logger.service.SysOperateLogService;
import com.eedi.framework.operatelog.core.service.OperateLog;
import com.eedi.framework.operatelog.core.service.OperateLogFrameworkService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class OperateLogFrameworkServiceImpl implements OperateLogFrameworkService {
    @Resource
    SysOperateLogService sysOperateLogService;

    @Override
    public void createOperateLog(OperateLog operateLog) {
        sysOperateLogService.createOperateLog(
                SysOperateLogConvert.INSTANCE.convert(operateLog)
        );
    }
}
